<?

function SelectTmpMemotrans() {
	global $DBConnection;
	$SQL = "DROP TABLE IF EXISTS ais_cbtrans_hutang";
	$DBConnection->QueryNoResult ($SQL);	
	
	$SQL = "CREATE TEMPORARY TABLE `ais_cbtrans_hutang` (`nobkt` VARCHAR (20))";
	$DBConnection->QueryNoResult ($SQL);

	$SQL  = "INSERT INTO ais_cbtrans_hutang (nobkt) ";
        $SQL .= "SELECT noref from ais_hutang ";
        $SQL .= "WHERE srt='2'";
        die($SQL);
	$DBConnection->QueryNoResult ($SQL);
}
?>